<?php

/**
 * Created by LíJimpéy(：
 * User: Leon Lee
 * Created at: 2021/2/28 11:33
 */

namespace App\Services;


class BaseServices
{
    protected static $instance;

    /**
     * @return static
     */
    public static function getInstance()
    {
        if (static::$instance instanceof static){
            return static::$instance;
        }
        static::$instance = new static();
        return static::$instance;
    }

    private function __construct(){}

    private function __clone(){}
}
